/**
 * @author roua_troua
 * 
 * Clasa constanta
 * 
 * Reprezinta constantele ce pot aparea intr-o functie. 
 * De ex. in f(x)=x+3, 3 reprezinta constanta. 
 * Obiectele de tip Constanta vor trebui sa memoreze aceasta valoare.
 * */

package q10.Functii.FunctiiElementare;

import q10.Arbori.Nod;

public class Constanta extends Nod{
	/** valoarea constantei */
	protected double ct;
	
		
	public String getNume(){
		return Double.toString(ct);
	}
	
	public void setNume(String s){
		sNume = s;
	}
	
	
	/** 
	 * Constructorul fara parametrii care initializeaza constanta cu 0
	 * @param 
	 */
	public Constanta()
	{
		ct = 0;
	}
	
	/**
	 *  Constructorul cu paramentrul ct
	 * @param ct valoarea constantei
	 */
	public Constanta(double ct)
	{
		super();
		this.ct = ct;
	}
	
	/**
	 * getCt()
	 * @return
	 */
	public double getCt(){
		return ct;
	}
	
	/**
	 * setCt(double ct)
	 * @param ct
	 */
	public void setCt(double ct){
		this.ct = ct;
	}
}
